import request from '@/utils/request'

// 查询订单列表列表
export function listCms_order(query) {
  return request({
    url: '/cms/cms_order/list',
    method: 'get',
    params: query
  })
}

// 查询订单列表详细
export function getCms_order(id) {
  return request({
    url: '/cms/cms_order/' + id,
    method: 'get'
  })
}

// 新增订单列表
export function addCms_order(data) {
  return request({
    url: '/cms/cms_order',
    method: 'post',
    data: data
  })
}

// 修改订单列表
export function updateCms_order(data) {
  return request({
    url: '/cms/cms_order',
    method: 'put',
    data: data
  })
}

// 删除订单列表
export function delCms_order(id) {
  return request({
    url: '/cms/cms_order/' + id,
    method: 'delete'
  })
}
